package sj.sj4;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sj.sj3.dao.UserDao;
import sj.sj3.pojo.User;
import sj.sj3.service.UserService;

@Service("userService")
public class UserServiceImpl4 implements UserService {

    @Autowired
    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    /**
     * 保存用户信息
     *
     * @param user
     */
    @Override
    public void save(User user) {
        userDao.save(user);
    }

}
